package cn.com.bluemoon.daps.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * <p>
 * 通知模板-影响通知
 * </p>
 *
 * @author admin
 * @since 2022-06-21
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "DapNoticeTemplateImpact", description = "通知模板-影响通知")
public class DapNoticeTemplateImpact extends Model<DapNoticeTemplateImpact> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "通知的id")
    private Long noticeId;

    @ApiModelProperty(value = "变更人")
    private String changeUser;

    @ApiModelProperty(value = "变更类型 1-表变更 2-归档变更-表归档")
    private Integer changeType;

    @ApiModelProperty(value = "所属系统")
    private String systemId;

    @ApiModelProperty(value = "变更表名")
    private String changeTableName;

    @ApiModelProperty(value = "变更表的Schema")
    private String changeTableSchema;

    @ApiModelProperty(value = "归档表名")
    private String archiveTableName;

    @ApiModelProperty(value = "变更脚本")
    private String changeScript;

    @ApiModelProperty(value = "变更原因")
    private String changeReason;

    @ApiModelProperty(value = "影响分析的结果")
    private String impactAnalysisResult;

    @ApiModelProperty(value = "归档存储信息")
    private String archiveInfo;

    @ApiModelProperty(value = "计划变更时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime planChangeTime;

    @ApiModelProperty(value = "创建人")
    private String createUserId;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "上次修改人")
    private String lastUpdateUserId;

    @ApiModelProperty(value = "上次修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime lastUpdateTime;


}
